
<?php
$equipment_name = $_REQUEST['equipment_name'];
$arr = array(
        "multi WIFI",
        "WIFI username & password",
        "WIFI speed limit",
        "Smart routing",
        "Full routing",
        "DNS"
);
$result=array();
if ($equipment_name == 3030) {
    $result = array(
            $arr[0] => "1",
            $arr[1] => "1",
            $arr[2] => "1",
            $arr[3] => "1",
            $arr[4] => "1",
            $arr[5] => "1"
    )
    ;
}
if ($equipment_name == 3631) {
    $result= array(
            $arr[0] => "0",
            $arr[1] => "0",
            $arr[2] => "0",
            $arr[3] => "1",
            $arr[4] => "1",
            $arr[5] => "0"
    )
    ;
}
if ($equipment_name == 842) {
    $result= array(
            $arr[0] => "1",
            $arr[1] => "1",
            $arr[2] => "1",
            $arr[3] => "1",
            $arr[4] => "1",
            $arr[5] => "1"
    )
    ;
}
if ($equipment_name == 1200) {
    $result = array(
            $arr[0] => "0",
            $arr[1] => "0",
            $arr[2] => "0",
            $arr[3] => "1",
            $arr[4] => "1",
            $arr[5] => "0"
    )
    ;
    
}
 if (empty ( $result )) {
             
            $message = array (
                     
                    "message" => "Not Exist"
            );
        }else {

            $message =$result;
        }
        echo json_encode ( $message );

        /*
         * 
         * http://localhost:8088/account-system/api/getequipment.php?equipment_name=1200
         */
